package io.renren.service;

import io.renren.common.entity.XlsLogCashEntity;
import io.renren.common.service.CrudService;
import io.renren.dto.XlsLogCashDTO;
import io.renren.utils.AppResult;

import java.math.BigDecimal;

/**
 * 消费明细
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-12
 */
public interface XlsLogCashService extends CrudService<XlsLogCashEntity, XlsLogCashDTO> {

    XlsLogCashEntity intiLogCash(Integer type, Long fromId, Long userId, String orderNo, BigDecimal preCash,
                                 Integer cashType, BigDecimal cash, String remark);

    AppResult consumption(Long userId, Integer type);
}
